{extend name="admin@public:base" /}
{block name="main-row-content"}
<div class="page-header">
	<h1>
		当前操作
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			添加钩子
		</small>
	</h1>
</div><!-- /.page-header -->
<div class="row">
	<div class="col-xs-12">
		<!-- PAGE CONTENT BEGINS -->
		<form class="form-horizontal ajaxForm2" action="{:url('admin/Addons/addons_runadd')}" method="post">
		   <div class="form-group">
				<label class="col-sm-2 control-label no-padding-right" for="form-field-1">钩子名称：</label>
				<div class="col-sm-10">
					<input type="text"  name="name" placeholder="请输入钩子名称" class="col-xs-4" required/>
					<div class="col-sm-5 help-block"><i class="fa fa-info-circle color-info1"></i> 需要在程序中先添加钩子，否则无效</div>
				</div>
				
			</div>
			<div class="space-4"></div>
            <div class="form-group">
				<label class="col-sm-2 control-label no-padding-right" for="form-field-1">钩子描述：</label>
				<div class="col-sm-4">
					<textarea name="description" class="form-control" length="120" rows="5" required></textarea>
				    <p class="help-block"><i class="fa fa-info-circle color-info1"></i> 钩子的描述信息</p> 
				</div>
			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-right" for="form-field-1">钩子类型：</label>
				<div class="col-sm-10">
					<select name="type" class="col-xs-4 col-sm-2" required>
                        <option value="">--请选择--</option>
                        <option value="1">视图</option>
                        <option value="0">控制器</option>
                    </select>
				</div>
				
			</div>
			<div class="space-4"></div>			
			<div class="clearfix">
				<div class="col-md-offset-3 col-md-9 ">
					<button class="btn btn-info btn-sm btn-radius" type="submit">
						<i class="ace-icon fa fa-check bigger-110"></i>
						提交并保存
					</button>

					&nbsp; &nbsp; &nbsp;
					<button class="btn btn-success btn-sm btn-radius" type="submit">
						<i class="ace-icon fa fa-undo bigger-110"></i>
						重置
					</button>
				</div>
			</div>

			
		</form>
	</div><!-- /.col -->
</div><!-- /.row -->
{/block}